package com.lagou.service.remote;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(value = "lagou-service-user", path = "/user")
public interface UserService {

    /**
     * 根据token查询⽤用户登录邮箱（用于网关校验）
     *
     * @return Email
     */
    @RequestMapping("/info/{token}")
    String info(@PathVariable("token") String token);

}
